package addEmployeeTransaction;

import schedule.PaymentSchedule;
import schedule.WeeklySchedule;
import classification.HourlyClassification;
import classification.PaymentClassification;
import database.PayrollDatabase;

public class AddHourlyEmployee extends AddEmployeeTransaction {

	private double hourlyRate;

	public AddHourlyEmployee(int id, String name, String address,
			double hourlyRate, PayrollDatabase database) {
		super(id, name, address, database);
		this.hourlyRate = hourlyRate;

	}

	@Override
	protected PaymentClassification makeClassification() {
		return new HourlyClassification(hourlyRate);
	}

	@Override
	protected PaymentSchedule makeSchedule() {
		return new WeeklySchedule();
	}
}
